<?php



class BannersMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.BannersMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('banners');
		$tMap->setPhpName('Banners');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('BANNERS_ID', 'BannersId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('BANNERS_TITLE', 'BannersTitle', 'string', CreoleTypes::VARCHAR, true, 64);

		$tMap->addColumn('BANNERS_URL', 'BannersUrl', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('BANNERS_IMAGE', 'BannersImage', 'string', CreoleTypes::VARCHAR, true, 64);

		$tMap->addColumn('BANNERS_GROUP', 'BannersGroup', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addColumn('BANNERS_HTML_TEXT', 'BannersHtmlText', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('EXPIRES_IMPRESSIONS', 'ExpiresImpressions', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('EXPIRES_DATE', 'ExpiresDate', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('DATE_SCHEDULED', 'DateScheduled', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('DATE_ADDED', 'DateAdded', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('DATE_STATUS_CHANGE', 'DateStatusChange', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('STATUS', 'Status', 'int', CreoleTypes::INTEGER, true, null);

	} 
} 